﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading.Tasks;

namespace Consoles
{
    public class Program
    {
        private static IConfiguration Configuration { get; set; }
        public static async Task Main(string[] args)
        {
            Console.WriteLine();
            await new HostBuilder()
               .UseEnvironment("Development")
               .ConfigureServices((hostContext, services) =>
               {
                   var builder = new ConfigurationBuilder()
                     .SetBasePath(AppContext.BaseDirectory);
                   Configuration = builder.Build();

               }).RunConsoleAsync();
        }
    }
}
